﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SharpSoft.Data.Schemas
{
    /// <summary>
    /// 数据列
    /// </summary>
    public class Column : AliasObject
    {

        /// <summary>
        /// 列是否为主键列
        /// </summary>
        public bool IsPrimaryKey { get; set; }
        /// <summary>
        /// 列是否为自增列
        /// </summary>
        public bool IsAutoIncrement { get; set; }
        /// <summary>
        /// 自增种子
        /// </summary>
        public int? AutoIncrementSeed { get; set; } = null;
        /// <summary>
        /// 外键
        /// </summary>
        public Column ForeignKey { get; set; }
    }
}
